<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="../tag/c.tld"%>
<%@taglib prefix="fmt" uri="../tag/fmt.tld"%>
<!--   -->
<!-- 页数 -->
<div class="message">
	<!-- 共<i class="blue"> -->
	<c:choose>
		<c:when test="${paginator==null}">
		共<i class="blue">0 </i>条记录，当前显示第&nbsp;<i class="blue">0/0</i>&nbsp;页
		</c:when>
		<c:otherwise>
		共<i class="blue"> ${paginator.totalCount} </i>条记录，当前显示第&nbsp;<i
				class="blue">${paginator.page}/${paginator.totalPages}</i>&nbsp;页
		</c:otherwise>
	</c:choose>
</div>
<c:if test="${paginator!=null}">
	<div style="text-align: center;">
		<ul class="pagination">
			<!-- <li><a href="#">&laquo;</a></li> -->
			<c:if test="${!paginator.firstPage}">
				<li><a href="javascript:queryAllPerson(1, ${paginator.limit});">&lt;&lt;</a></li>
				<li><a
					href="javascript:queryAllPerson(${paginator.prePage}, ${paginator.limit});">&lt;</a></li>
			</c:if>
			<c:forEach items="${paginator.slider}" var="slider">
				<c:if test="${slider==paginator.page}">
					<li class="active"><a
						href="javascript:queryAllPerson(${slider}, ${paginator.limit});">${slider}</a></li>
				</c:if>
				<c:if test="${slider!=paginator.page}">
					<li><a
						href="javascript:queryAllPerson(${slider}, ${paginator.limit});">${slider}</a></li>
				</c:if>
			</c:forEach>
			<c:if test="${!paginator.lastPage}">
				<li><a
					href="javascript:queryAllPerson(${paginator.nextPage}, ${paginator.limit});">&gt;</a></li>
				<li><a
					href="javascript:queryAllPerson(${paginator.totalPages}, ${paginator.limit});">&gt;&gt;</a></li>
			</c:if>
			<!-- <li><a href="#">&raquo;</a></li> -->
		</ul>
	</div>
</c:if>
